// import axios from '@/utils/request'
export default {
  Specification: {
    form: {
      fields: [
        { property: 'product', type_options: { disabled: true } },
        {
          property: 'name',
          field_options: { label: '规格' }
        },
        // 'sku',
        'listOrder',
        'price',
        {
          property: 'remains',
          field_options: { label: '库存' }
        }
      ]
    },
    list: {
      query: {
        '@filter': 'entity.getProduct().getIsOnSale() == true && entity.getProduct().getIsDeleted() == false',
        '@order': 'entity.listOrder|ASC'
      },
      list_display: [
        { property: 'name', editable: true },
        // { property: 'listOrder', editable: true },
        { property: 'price', editable: true },
        { property: 'remains', editable: true, label: '库存' }
      ]
    }
  }
}
